package edu.sctu.practice.class02.liqiqi.test04;

/**
 * Created by uw on 2015/10/11.
 */
public class Number {
    private int n1;
    private int n2;

    public Number(int n1, int n2) {
        this.n1 = n1;
        this.n2 = n2;
    }

    public void addition(int value) {
        n1 = n1 + value;
        n2 = n2 + value;
        System.out.println(n1);
        System.out.println(n2);
    }

    public void subtration(int value) {
        n1 = n1 - value;
        n2 = n2 - value;
        System.out.println(n1);
        System.out.println(n2);
    }

    public void multiplication(int value) {
        n1 = n1 * value;
        n2 = n2 * value;
        System.out.println(n1);
        System.out.println(n2);
    }

    public void division(int value) {
        n1 = n1 / value;
        n2 = n2 / value;
        System.out.println(n1);
        System.out.println(n2);
    }
}
